<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>栏目管理-<?php echo $cfg_sitename."-".$cfg_sysversion;?></title>
<meta property="xn:admins" content="583870616"/>
<meta property="wb:webmaster" content="ye-shi-li@qq.com">
<link href="templets/css/admin_css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table width="98%" border="0" cellpadding="3" cellspacing="1" class="ye">
  <tr bgcolor="#666666">
    <td height="24" colspan="10"><font color="#FFFFFF">&nbsp;<strong>栏目管理</strong></font><a href="admin_action_action.php?act=add" class="spemail fancybox">添加栏目</a></td>
  </tr>
  <tr bgcolor="#f5f5f5">
    <td width="4%" height="24" align="center" valign="middle">ID</td>
    <td width="10%" align="center" valign="middle">栏目名称</td>
    <td width="10%" align="center" valign="middle">所属栏目</td>
    <td width="43%" align="center" valign="middle">路径URL</td>
    <td width="7%" align="center" valign="middle">是否显示</td>
    <td width="6%" align="center" valign="middle">排序</td>
    <td width="13%" align="center" valign="middle">创建时间</td>
    <td width="7%" align="center" valign="middle">操作</td>
  </tr>
  <?php
	foreach ($s_list as $list){
    ?>
   <tr onMouseOver="this.style.background='#f5f5f5'" onMouseOut="this.style.background='#ffffff';"  bgcolor="#ffffff">
    <td align="center" valign="middle"><?php echo $list['id'];?></td>
    <td align="center" valign="middle"><?php echo $list['title'];?></td>
    <td align="center" valign="middle"><?php echo get_action($list['fid']);?></td>
    <td align="center" valign="middle"><?php echo $list['url'];?></td>
    <td align="center" valign="middle"><?php if($list['display']==0){echo "√";}else{echo "×";}?></td>
    <td align="center" valign="middle"><?php echo $list['rank'];?></td>
    <td align="center" valign="middle"><?php echo $list['datetime']?></td>
    <td align="center" valign="middle" class="caozuo"><a href="admin_action_action.php?act=mod&id=<?php echo $list['id']; ?>" title="修改" class="fancybox"><img src="templets/images/edit.png" alt="修改" border="0" /></a>&nbsp;<a href="admin_action_ok.php?id=<?php echo $list['id']; ?>&act=del" onClick="javascript:return confirm('确实要删除吗?')" title="删除"><img src="templets/images/del.png" alt="删除" border="0" /></a></td>
  </tr>
  <?php
  	}
  ?>
  <tr>
    <td height="24" colspan="10" bgcolor="#F8FCF6"><?php page($sqlstr,$page_size,"admin_action.php?page",$page);?></td>
  </tr>
</table>
</body>
</html>
<link rel="stylesheet" type="text/css" href="/inc/js/fancyBox/source/jquery.fancybox.css?v=2.1.5" media="screen" />
<script type="text/javascript" src="/inc/js/fancyBox/lib/jquery-1.10.1.min.js"></script>
<script type="text/javascript" src="/inc/js/fancyBox/source/jquery.fancybox.js?v=2.1.5"></script>
<script>
	$(function(){
		$('.fancybox').fancybox({
			type: 'ajax',
			autoSize : 'true'
		});
	});
</script>